﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
using DAL;

namespace BLL
{
    public class UsersManage
    {
        //注册及体验金新增
        public static bool AddTYUsers(Users us)
        {
            return UsersService.AddTYUsers(us);
        }
        //新增
        public static bool AddUsers(Users us)
        {
            return UsersService.AddUsers(us);
        }
        //注册新增
        public static bool AddZCUsers(Users us)
        {
            return UsersService.AddZCUsers(us);
        }
        //删除
        public static bool DeleUsers(int id)
        {
            return UsersService.DeleUsers(id);
        }

        //修改全部内容
        public static bool UpdaUsers(Users us)
        {
            return UsersService.UpdaUsers(us);
        }

        //修改部分内容
        public static bool UpdaPartUsers(Users us)
        {
            return UsersService.UpdaPartUsers(us);
        }

        //修改余额和金币
        public static bool UpdaPriceUsers(Users us)
        {
            return UsersService.UpdaPriceUsers(us);
        }
        //找回密码
        public static bool UpdaZHMMUsers(Users us)
        {
            return UsersService.UpdaZHMMUsers(us);
        }
        //查询所有用户信息
        public static List<Users> SeleAllUsers()
        {
            return UsersService.SeleAllUsers();
        }
        //判断用户是否存在
        public static List<Users> SelePDCZUsers(string name,string pwd)
        {
            return UsersService.SelePDCZUsers(name,pwd);
        }
        //找回密码判断用户是否存在
        public static List<Users> SelePwdZhaoHuiUsers(string name, string phone)
        {
            return UsersService.SelePwdZhaoHuiUsers(name,phone);
        }
        //查指定定id用户信息
        public static List<Users> SeleIdUsers(int id)
        {
            return UsersService.SeleIdUsers(id);
        }

        //查指定姓名用户信息
        public static List<Users> SeleNameUsers(string Name)
        {
            return UsersService.SeleNameUsers(Name);
        }
    }
}
